from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField,IntegerField
from wtforms.validators import DataRequired, Length, NumberRange


class LoginForm(FlaskForm):
    id = IntegerField('用户名', validators=[DataRequired(), NumberRange(min=0, max=59999999)])
    password = PasswordField('密码', validators=[DataRequired()])
    remember_me = BooleanField('保持登录')
    submit = SubmitField('登录')
